<?php
// 加载后台函数集合
require_once('global.php');
if ($ixnagroup == 1) {
	$adminitem = array(		
		'site' => '站点管理',
		'feed' => 'Feeds',
		'comment' => '评论',
		'category' => '分类',
		'user' => '用户',
		'link' => '链接',
		'template' => '模板',
		'cache' => '维护',
		'config' => '设置',
	);
}

if (!$job) {
	$job = 'main';
} else {
	if (strlen($job) > 20) {
		$job = 'main';
	}
	$job = str_replace(array('.','/','\\',"'",':','%'),'',$job);
	$job = basename($job);
	$job = in_array($job, array('config','site','feed','comment','category','user','link','template','cache','database','log')) ? $job : 'main';
}

$subnav = '';
if (file_exists($job.'.php')) {
	include ($job.'.php');
} else {
	include ('main.php');
}
?>